import { dealOpts, COURSE } from './../api_type'
import request from '@/util/request'

// 班级
const courseGetClasses = (params, opts) => {
  return request.get(dealOpts(COURSE + '/getClasses', opts), params)
}

const courseCreateClasses = (params, opts) => {
  return request.get(dealOpts(COURSE + '/createClass', opts), params)
}

const courseGetClassInfo = (params, opts) => {
  return request.get(dealOpts(COURSE + '/getClassInfo', opts), params)
}

const courseModifyClass = (params, opts) => {
  return request.get(dealOpts(COURSE + '/modifyClass', opts), params)
}

export default {
  courseGetClasses,
  courseCreateClasses,
  courseGetClassInfo,
  courseModifyClass
}
